import request from '@/utils/request'
const path = '/open/douyinMini'

export function getMinAppOpenList(page, size, search, type) {
  return request({
    url: path + '/getMinAppOpenList',
    method: 'post',
    data: { page, size, search, type }
  })
}

export function getMinAppOpenForm(id, type) {
  return request({
    url: path + '/getMinAppOpenForm',
    method: 'post',
    data: { id, type }
  })
}

export function getDouyinGenUrl(defaultAppId) {
  return request({
    url: path + '/getDouyinGenUrl',
    method: 'post',
    data: { defaultAppId }
  })
}
